package com.huike.controller.system;

import com.huike.dto.LogPageDto;
import com.huike.result.Result;
import com.huike.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system/log")
public class LogController {

    @Autowired
    private SysLogService sysLogService;

    @GetMapping("/list")
    public Result listLog(LogPageDto dto){
            return sysLogService.listLog(dto);
    }
}
